//
//  ZHQRScanMacro.h
//  ZHQRScan
//
//  Created by 正合适 on 2017/11/18.
//  Copyright © 2017年 Rainy. All rights reserved.
//  宏

#ifndef ZHQRScanMacro_h
#define ZHQRScanMacro_h

#define ScreenBounds [[UIScreen mainScreen] bounds]
#define kScreenWidth kScreenBounds.size.width
#define kScreenHeight kScreenBounds.size.height
#define kRGB(R,G,B) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:1]
#define kRGBA(R,G,B,A) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]

// 扫描区域宽度
#define kScanRangeW  220


/**
 扫描结果

 - ScanStatus_Success: 扫描成功，有扫描结果
 - ScanStatus_NoResults: 扫描完成，没有结果
 */
typedef NS_ENUM(NSUInteger, ScanStatus) {
    ScanStatus_Success   = 1,
    ScanStatus_NoResults = 2,
};

#endif /* ZHQRScanMacro_h */
